package com.wangshuo.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wangshuo.entity.Order;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wangshuo.entity.OrderrItem;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
* @author 13326
* @description 针对表【order】的数据库操作Mapper
* @createDate 2025-03-08 16:09:22
* @Entity com.wangshuo.entity.Order
*/
@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    @Insert("insert into order (addressid,goodid,ordernum,price,xdtime,zfdh,status,zftime,dqdz,userid) values (#{addressid},#{goodid},#{ordernum},#{price},#{xdtime},#{zfdh},#{status},#{zftime},#{dqdz},#{userid})")
    void insertor(Order order);

    List<OrderrItem> getlist(Long uid);

    List<OrderrItem> getlist1(Long uid);

    IPage<OrderrItem> getlistpage(IPage<OrderrItem> page, String keyword);
}




